package org.zoomdev.zoom.dao.adapters.result;

import org.zoomdev.zoom.dao.adapters.ResultSetAdapter;

import java.sql.ResultSet;
import java.sql.SQLException;

public class DoubleResultSetAdapter implements ResultSetAdapter {

    public static final ResultSetAdapter ADAPTER = new DoubleResultSetAdapter();

    @Override
    public Object getObject(ResultSet rs, int columnIndex) throws SQLException {
        return rs.getDouble(columnIndex);
    }
}
